package com.example.canalclientsync.canal.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;
import java.util.Set;

/**
 * @author chen.cr
 * @since 2023/9/15
 */
@Data
@Deprecated
public class Department {

    @TableId
//    @Id
    private Integer id;

    @TableField
    @Field(type = FieldType.Text)
    private String name;

    @TableField(value = "create_time")
    @Field(type = FieldType.Date, format = DateFormat.basic_date_time)
    private Date createTime;

    /**
     * 部门成员
     */
    @Field()
    private Set<Integer> members;

}
